import httpSer from "../../http";

const actions = {
    upload({ commit }, params) {
        return httpSer.post('/enclosureInfo/addOne', params);
    },
    getEnclosureInfo({ commit }, params) {
        return httpSer.post('/enclosureInfo/listEnclosureInfo', params);
    },
    removeEnclosure({ commit }, params) {
        return httpSer.post('/enclosureInfo/removeOne', params);
    },
    queryApproveHistory({ commit }, params) {
        return httpSer.post('/approveRequest/queryApproveHistory', params);
    },
    approve({ commit }, params) {
        return httpSer.post('/approveTask/approve', params);
    },
    queryApproveByBiz({ commit }, params) {
        return httpSer.post('/approveRequest/queryApproveByBiz', params);
    },
    pageApproveRequest({ commit }, params) {
        return httpSer.post('/approveRequest/pageApproveRequest', params);
    },
    listRoleInfo({ commit }, params) {
        return httpSer.post('/roleInfo/listRoleInfo', params);
    },
    getConfigValueByKey({ commit }, params) {
        return httpSer.post('/common/getConfigValueByKey', params);
    },
    queryApproveById({ commit }, params) {
        return httpSer.post('/approveRequest/queryApproveHistory', params);
    }
}
export default actions